package com.studyyoun.android.nonghe.share;

import com.studyyoun.android.nonghe.welcom.App;
import com.tencent.mm.opensdk.openapi.*;

/**
 * Created by androidlongs on 17/6/15.
 * 站在顶峰，看世界
 * 落在谷底，思人生
 */

public class WeixinMainFunction {
    public final IWXAPI api;

    private WeixinMainFunction (){

        api = WXAPIFactory.createWXAPI(App.getInstance(), appId);

        api.registerApp(appId);
    }
    private static class QQMainFunctionSingle{
        private static WeixinMainFunction sQQMainFunction = new WeixinMainFunction();
    }

    public static WeixinMainFunction getInstance(){
        return QQMainFunctionSingle.sQQMainFunction;
    }



    public static final  String appId ="wx172ebf2499a5a9e4";


}
